package edu.maping.easy.gui;

import fisica.FBody;

public class GUIEvent {

	public Button button;

	public CircleButton circleButton;

	public Slider slider;

	public FBody controller() {
		if (button != null)
			return button;
		else if (slider != null)
			return slider;
		else if (circleButton != null)
			return circleButton;
		else
			return null;
	}

	public String name() {
		if (button != null)
			return button.name;
		else if (slider != null)
			return slider.name;
		else if (circleButton != null)
			return circleButton.name;
		else
			return "";
	}
}
